/*
 * Copyright (c) 2008-2009 Daniel Freitas
 *
 * This file is part of Army Creator.
 *
 * Army Creator is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Army Creator is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Army Creator.  If not, see <http://www.gnu.org/licenses/>.
 */
package com.googlecode.armycreator.datastore.genericdao;

import java.util.Map;

/**
 * Provides information about the method invoked in the generic dao interface.
 */
public class QueryMethodInvocation {
    private final String daoInterfaceName;
    private final String methodName;
    private final Map<String, Object> arguments;
    private final Class<?> methodReturnType;

    public QueryMethodInvocation(String daoInterfaceName, String methodName, Map<String, Object> arguments,
            Class<?> methodReturnType) {
        this.daoInterfaceName = daoInterfaceName;
        this.methodName = methodName;
        this.arguments = arguments;
        this.methodReturnType = methodReturnType;
    }

    public String getDaoInterfaceName() {
        return daoInterfaceName;
    }

    public String getMethodName() {
        return methodName;
    }

    public Map<String, Object> getArguments() {
        return arguments;
    }

    public Class<?> getMethodReturnType() {
        return methodReturnType;
    }
}
